'apprefix' : _this.pe.wikiTitleKey,
'apnamespace' : 102
}
- }, function( subData ) {
- _this.doProcSubPages( subData, wgServer + wgScriptPath);
+ }, function( subData ) {
+ if( subData.error && subData.error.code == 'apunknown_apnamespace'){
+ do_api_req({
+ 'url' : apiUrl,
+ 'data': {
+ 'list' : 'allpages',
+ 'apprefix' : 'TimedText:' + _this.pe.wikiTitleKey,
+ }
+ }, function( subData ) {
+ _this.doProcSubPages( subData, wgServer + wgScriptPath);
+ });
+ }else{
+ _this.doProcSubPages( subData, wgServer + wgScriptPath);
+ }
});
}
}else{
"mvTimedEffectsEdit": "libSequencer/mvTimedEffectsEdit.js",
"mvTextInterface" : "libTimedText/mvTextInterface.js",
- "mvTimedTextEdit" : "libTimedText/mvTimedTextEdit.js"
+ "mvTimeTextEdit" : "libTimedText/mvTimeTextEdit.js"
});
// Dependency mapping for CSS files for self-contained included plugins:
})(window.$mw);
//load in js2 stopgap into proper location:
-if(gMsg){
+if( typeof gMsg != 'undefined'){
$mw.lang.loadGM( gMsg )
}
'mwe-no_text_tracks_found' => 'No text subtitles found',
'mwe-add-edit-subs' => 'Add/edit subtitles',
+ /*
+ * js file: /libTimedText/mvTimeTextEdit.js
+ */
+ 'mwe-add-subs-file' => 'Add/replace subtitle',
+ 'mwe-add-subs-file-title'=> 'Select subtitle to upload',
+ 'mwe-error-only-srt' => 'Only srt files can be uploaded right now.',
+ 'mwe-watch-video' => 'Watch video',
+
/*
* js file: /libSequencer/mvTimedEffectsEdit.js
*/
var urlparts = getRemoteEmbedPath();
var mwEmbedHostPath = urlparts[0];
-var mwRemoteVersion = '1.03';
+var mwRemoteVersion = '1.05';
reqArguments = urlparts[1];
//timed text display:
if(wgPageName.indexOf("TimedText") === 0){
load_mv_embed(function(){
- loadExternalJs( mwEmbedHostPath + '/mwEmbed/libTimedText/mvTimeTextEdit.js' + reqArguments );
+ $mw.load( ['mvTimeTextEdit'],function(){
+ //could run init here (but mvTimeTextEdit included onLoad actions)
+ });
});
}